package gestion.horarios.model.jpa.entities;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the detalleprerequisitoplancurricular database table.
 * 
 */
@Entity
@Table(name="detalleprerequisitoplancurricular")
public class DetallePrerequisitoPlanCurricular implements Serializable {
	private static final long serialVersionUID = 1L;
	private int detallePreRequisitoPlanCurricularId;
	private DetallePlanCurricular detalleplancurricular;
	private Curso curso;

    public DetallePrerequisitoPlanCurricular() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(unique=true, nullable=false)
	public int getDetallePreRequisitoPlanCurricularId() {
		return this.detallePreRequisitoPlanCurricularId;
	}

	public void setDetallePreRequisitoPlanCurricularId(int detallePreRequisitoPlanCurricularId) {
		this.detallePreRequisitoPlanCurricularId = detallePreRequisitoPlanCurricularId;
	}


	//bi-directional many-to-one association to DetallePlanCurricular
    @ManyToOne
	@JoinColumns({
		@JoinColumn(name="DetallePlanCurricularId", referencedColumnName="DetallePlanCurricularId", nullable=false),
		@JoinColumn(name="PlanCurricularId", referencedColumnName="PlanCurricularId", nullable=false)
		})
	public DetallePlanCurricular getDetalleplancurricular() {
		return this.detalleplancurricular;
	}

	public void setDetalleplancurricular(DetallePlanCurricular detalleplancurricular) {
		this.detalleplancurricular = detalleplancurricular;
	}
	

	//bi-directional many-to-one association to Curso
    @ManyToOne
	@JoinColumn(name="CursoId", nullable=false)
	public Curso getCurso() {
		return this.curso;
	}

	public void setCurso(Curso curso) {
		this.curso = curso;
	}
	
}